home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dutil / flush.c < prev    next >
C/C++ Source or Header  |  1997-09-09  |  589b  |  38 lines

  1. /*
  2.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  3.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  4.  *    DICE-LICENSE.TXT.
  5.  */
  6.  
  7. /*
  8.  *  dumb memory flush
  9.  *
  10.  */
  11.  
  12. #ifdef AMIGA
  13. #include <exec/types.h>
  14. #include <exec/memory.h>
  15. #include <clib/exec_protos.h>
  16. #include <lib/version.h>
  17. #else
  18. #include <include/lib/version.h>
  19. #endif
  20.  
  21. IDENT("flush",".3");
  22. DCOPYRIGHT;
  23.  
  24. int
  25. main(int ac, char **av)
  26. {
  27. #ifdef AMIGA
  28.     char *ptr;
  29.  
  30.     if (ptr = AllocMem(0x7FFFFFFF, MEMF_PUBLIC)) {
  31.     main(0, NULL);
  32.     FreeMem(ptr, 0x7FFFFFFF);
  33.     }
  34. #endif
  35.     return(0);
  36. }
  37.  
  38.